// 创建角色表
const mongoose =  require('mongoose')
//创建约束
const areaSchema = new mongoose.Schema({
  name: { type: String, required: true }, //姓名
  auth_name: String, //授权人
  phone: String,
  administer:String, //管辖区
  create_time: { type: Number, default: Date.now }, //创建时间
});
const areaModel = mongoose.model('areas',areaSchema)
module.exports = areaModel